package fr.anime.model;

import java.util.ArrayList;

import fr.anime.model.explorer.Drive;
import fr.anime.model.explorer.Drives;

public class Model {
	Drive drive;
	public Model() {
		Drives.getInstance();
	}
	
	
	public ArrayList<String> getDrivesNames() {
		ArrayList<String> drivesNames = new ArrayList<String>();
		for (Drive drive : Drives.getInstance().getDrives()) {
			drivesNames.add(drive.getName());
		}
		return drivesNames;
	}


	public void setDrive(Object selectedItem) {
		// TODO Auto-generated method stub
		this.drive = Drives.getInstance().getDrive((String) selectedItem);
	}
	public Drive getDrive() {
		return this.drive;
	}

}
